function y = power1(x)
% power function
%x0=[1,1,...,1];

n=length(x);
y=0;
for i=1:n
    y=y+(i*x(i))^2;
end


